<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>cms内容管理系统-关于</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<link rel="stylesheet" type="text/css" href="http://localhost/hu_cms/template/default/style/common.css">
	<link rel="stylesheet" type="text/css" href="http://localhost/hu_cms/template/default/style/page.css">
	<script type="text/javascript" src='http://localhost/hu_cms/template/default/js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='http://localhost/hu_cms/template/default/js/index.js'></script>
</head>
<body>

	<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!-- 头部 -->
	<div id="box_top">
		<div class="top">
			<div class="left fl">
				<img src="http://localhost/hu_cms/template/default/images/logo.gif" alt="logo">
			</div>
			<div class="right fr">
				<p>
					<a href="">设为首页</a><span>|</span>
					<a href="">加入收藏</a><span>|</span>
					<a href="">联系我们</a>
				</p>
				<form action="" method="post">
					<input type="text" name="key" class="input_text fl" size="28" placeholder="请输入关键词">
					<input type="submit" class="sub fl" value="搜索">
				</form>
			</div>
		</div>
	</div>

<!-- 菜单导航 -->

<div id="menu">
	<ul class="nav">
		<li class="hover"><a href="http://localhost/hu_cms">网站首页</a></li>
		<?php $hd["list"]["c"]["total"]=0;if(isset($data) && !empty($data)):$_id_c=0;$_index_c=0;$lastc=min(1000,count($data));
$hd["list"]["c"]["first"]=true;
$hd["list"]["c"]["last"]=false;
$_total_c=ceil($lastc/1);$hd["list"]["c"]["total"]=$_total_c;
$_data_c = array_slice($data,0,$lastc);
if(count($_data_c)==0):echo "";
else:
foreach($_data_c as $key=>$c):
if(($_id_c)%1==0):$_id_c++;else:$_id_c++;continue;endif;
$hd["list"]["c"]["index"]=++$_index_c;
if($_index_c>=$_total_c):$hd["list"]["c"]["last"]=true;endif;?>

			<li><img src="http://localhost/hu_cms/template/default/images/nav_mid.png"></li>
			<li>
				<a href="<?php echo U('Index/Index/category',array('cid'=>$c['cid']));?>"><?php echo $c['catname'];?></a>
				<dl style="display: none;">
							<?php
		   $cid=$c['cid'];
		   $type=son;
		   $db=M('category');

		   switch ($type) {
		   	case 'self':
				$cat= $db->find($c['cid']);
				$data=$db->where("pid=".$cat['pid'])->all();
		   		break;
		   	
		   	case 'son':
				$data=$db->where("pid=".$cid)->all();
		   		break;
		   }
		  foreach($data as $field):
				$field['caturl']=U('Index/Index/category',array('cid'=>$field['cid']));
		 ?>	
						<dt>
							<a href="<?php echo $field['caturl'];?>"><?php echo $field['catname'];?></a>
						</dt>
					<?php endforeach; ?>
				</dl>
			</li>
		<?php $hd["list"]["c"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>

	</ul>
</div>
	
	<!-- 空白间隙 -->
	<div id="h10"></div>

	<!-- banner -->

	<div id="banner">
		<ul>
			<li><a href=""><img src="http://localhost/hu_cms/template/default/images/banner1.jpg" alt="banner1"></a></li>
			<li><a href=""><img src="http://localhost/hu_cms/template/default/images/banner2.jpg" alt="banner2"></a></li>
		</ul>
		<p>
			<span class="curs"></span>
			<span></span>
		</p>
		<div class="prev"></div>
    	<div class="next"></div>  
	</div>

	<!-- 空白间隙 -->
	<div id="h10"></div>

	<div id="position">
		<p>您所在的位置：<a href="http://localhost/hu_cms">首页</a>&gt;<a href=""><?php echo $cms['catname'];?></a></p>
	</div>
	<!-- 主要内容 -->

	<div id="content">
		<div class="contents fl">
			<div class="con_box">
				<div class="con_box_top"><span><?php echo $cms['title'];?></span></div>
				<div class="con_box_con">
					<?php echo $cms['content'];?>
				</div>
			</div>
		</div>

		<div class="sidebar fr">
			<div class="con_box">
				<div class="con_box_top"><span>关于我们</span></div>
				<div class="con_box_con">
					<ul>
						<li><span class="hover">&gt;&gt;</span><a class="hover" href="">公司简介</a></li>
						<li><span>&gt;&gt;</span><a href="">企业文化</a></li>
						<li><span>&gt;&gt;</span><a href="">荣誉资质</a></li>
					</ul>
				</div>
			</div>

			<!-- 空白间隙 -->
			<div id="h10"></div>

			<div class="con_box">
				<div class="con_box_top"><span>联系我们</span><a href="">更多&gt;&gt;&gt;</a></div>
				<div class="con_box_con">
					<h3>苏州时代网络科技有限公司</h3>
					<p>联系人：陆先生</p>
					<p>电　话：0512-6777××××</p>
					<p>手　机：138××××××××</p>
					<p>邮　箱：sdcms@qq.com</p>
					<p>地　址：苏州市高新区国际科技园</p>
				</div>
			</div>
		</div>
	</div>

	<!-- 空白间隙 -->
	<div id="h10"></div>
	<div id="h10"></div>
	
	<div id="footer">
		<div class="footers">
			<a href="">网站首页</a><span>|</span>
			<a href="">关于我们</a><span>|</span>
			<a href="">人才招聘</a><span>|</span>
			<a href="">联系我们</a><span>|</span>
			<a href="">在线留言</a><span>|</span>
			<a href="">网站地图</a>
		</div>
		<p>版权所有：时代网站信息管理系统企业版<a href="">苏ICP备13000021号</a></p>
		<p>Powered by<a href="">sdcms企业版</a>页面执行时间0.1719秒　查询数据库14次　</p>
	</div>

</body>
</html>